package com.ruoyi.web.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * K8s用户权限对象 kubernetes_user_role_binding
 * 
 * @author xuchengchao
 * @date 2022-04-17
 */
public class KubernetesUserRoleBinding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 角色ID */
    @Excel(name = "角色ID")
    private Long roleId;

    /** 角色名 */
    @Excel(name = "角色名")
    private String roleName;

    /** 命名空间 */
    @Excel(name = "命名空间")
    private String namespace;

    /** 集群权限 */
    @Excel(name = "集群权限")
    private Integer clusterBinding;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setRoleName(String roleName) 
    {
        this.roleName = roleName;
    }

    public String getRoleName() 
    {
        return roleName;
    }
    public void setNamespace(String namespace) 
    {
        this.namespace = namespace;
    }

    public String getNamespace() 
    {
        return namespace;
    }
    public void setClusterBinding(Integer clusterBinding) 
    {
        this.clusterBinding = clusterBinding;
    }

    public Integer getClusterBinding() 
    {
        return clusterBinding;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("roleId", getRoleId())
            .append("roleName", getRoleName())
            .append("namespace", getNamespace())
            .append("clusterBinding", getClusterBinding())
            .toString();
    }
}
